<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jspf/include.jspf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <fmt:message key="common.appTitle"/>
    </title>
    <link type="text/css" rel="stylesheet" href="<c:url value="/css/style.css"/>"/>
    <link type="text/css" rel="stylesheet" href="<c:url value="/css/menu.css"/>"/>
    <link rel="SHORTCUT ICON" href="<c:url value="/logo.ico"/>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <tiles:insertAttribute name="meta"/>
    <script src="<c:url value="/js/prototype.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/js/common.js"/>" type="text/javascript"></script>
    <%--<script src="<c:url value="/js/jsProgressBarHandler.js"/>" type="text/javascript"></script>--%>
    <tiles:insertAttribute name="javascript"/>
</head>

<body>
<%--
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7569322-1");
pageTracker._trackPageview();
} catch(err) {}</script>
--%>

<div class="site-wrapper">

    <div class="header-wrapper-noimage">
        <div class="header-wrapper">
        </div>
    </div>

    <div class="header-menu">
        <tiles:insertAttribute name="menu"/>
    </div>

    <div class="body-wrapper">
        <table style="width: 100%">
            <tr>
                <td>&nbsp;</td>
                <td>
                    <div class="page-title">
                        <tiles:insertAttribute name="pageTitle"/>
                    </div>
                </td>
                <td><tiles:insertDefinition name=".language"/></td>
            </tr>
            <tr>
                <td style="width:20%; vertical-align: top;">
                    <c:choose>
                        <c:when test="<%=request.getUserPrincipal() == null && !request.getRequestURI().contains(\"loginPage.jsp\")%>">
                            <tiles:insertAttribute name="loginForm"/>
                        </c:when>
                        <c:when test="<%=request.getUserPrincipal() != null%>">
                            <tiles:insertDefinition name=".userLeftSide"/>
                        </c:when>
                    </c:choose>
                    <%--<tiles:insertDefinition name=".commonLeftSide"/>--%>
                </td>
                <td style="width:65%; vertical-align: top;">
                    <tiles:insertAttribute name="body"/>
                </td>
                <td style="width:15%; vertical-align: top;">
                    <c:if test="<%=request.getUserPrincipal() != null%>">
                        <tiles:insertDefinition name=".showNewExercises"/>
                    </c:if>
                    <%--<tiles:insertAttribute name="interrogation"/>--%>
                </td>
            </tr>
        </table>
    </div>

    <div class="footer-wrapper">
        <span style="vertical-align:bottom;">
            <%@ include file="/WEB-INF/jspf/footer.jspf" %>
        </span>
    </div>

</div>
</body>
</html>
